import {createRouter,createWebHistory} from "vue-router";

const routes = [
    {
        path: '/toutiao',
        component: () => import('../views/toutiao_news.vue')
    },
    {
        path: '/category',
        component: () => import('../views/category_news.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router